package com.school.fuyuan.business.constants;

/**
 * @author zrhong
 * @version 1.0
 * @date 2019/3/3 14:14
 * @description
 */
public class InfoConstants {
    /***角色类型,走角色鉴权***/
    public static final String AUTH_ROLE_TYPE = "2";


    public static final String INFO_PARAM_FAIL = "1000";// 请求入参解析失败。
    public static final String INFO_OPER_FAIL = "2000";// xxx操作失败
    public static final String INFO_DATABASE_FAIL = "3000";// 数据库失败
    public static final String INFO_AUTH_FAIL = "4000";// 授权失败
    public static final String INFO_SUCCESS = "0";// 成功

    public static final String EMPTY_STRING = "";


    /**
     * 正则表达式
     */
    public static final String DATE = "^\\d{4}-\\d{2}-\\d{2}$";

    public static final String DATE_TIME = "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$";

    public static final String SINGLE_MOBILE = "^[0-9]+|\\+?[0-9]+$";

    public static final String SINGLE_EMAIL = "^[^,^\\s]+@[\\w_-]+(\\.[\\w_-]+)+$";

    public static final String SUBJECTS_GRADE = "^[ABCDEFGHIJKLMN]$";


    public static final int DEFAULT_PAGE_SIZE = 30;
}
